﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Report.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	WorkOrderReport
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Work Order Report</h1>
    <br />
    <table class="data-table">
        <thead>
            <tr>
                <th>
                    Work Order #
                </th>
                <th>
                    Asset ID
                </th>
                <th>
                    Asset Type
                </th>
                <th>
                    Work Order Status
                </th>
                <th>
                    Date Due
                </th>
                <th>
                    Responsible group
                </th>
                <th>
                    Description
                </th>
            </tr>
        </thead>
        <tbody>
            <% For Each item In ViewData("WorkOrders")%>
            <tr>
                <td width="7%">
                    <%: item.ID%>
                </td>
                <td width="10%">
                    <%: item.AssetID%>
                </td>
                <td width="10%">
                    <%: item.AssetType%>
                </td>
                <td width="10%">
                    <%: item.Status%>
                </td>
                <td width="13%">
                    <%: item.DateDue%>
                </td>
                <td width="20%">
                    <%: item.ResponsibleGroups%>
                </td>
                <td width="30%">
                    <%: item.Description%>
                </td>
            </tr>
            <% Next%>
        </tbody>
    </table>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FormContent" runat="server">
    <%= Html.Hidden("txtDateFrom", ViewData("DateFrom"))%>
    <%= Html.Hidden("txtDateTo", ViewData("DateTo"))%>
    <%= Html.Hidden("Status", ViewData("Status"))%>

    <%= Html.Hidden("DepartmentID", ViewData("DepartmentID"))%>
    <%= Html.Hidden("GroupID", ViewData("GroupID"))%>
    <%= Html.Hidden("AssetTypeID", ViewData("AssetTypeID"))%>

</asp:Content>
